
* APPENDIX G - Polities, Elections and Variation in Timing of Interview by Election Survey


clear all	
cd "${data}"	
use "data1.dta", clear 

gen observationlimit_CSES = . // in order to limit the bivariate model to the identical sample with the full model.
replace observationlimit_CSES = 1 if daysafter!=. & IMD5012_!=. & election_!=. & country_!=. & respondent!=. 


keep if observationlimit_CSES==1

 graph box daysafter, ///
    over(election_, label(angle(90) labsize(vsmall))) ///
    ylabel(, angle(90) labsize(small)) ///
    box(1, color(gs5%50)) ///
    medtype(line) ///
    marker(1, msize(tiny) mcolor(gs5%50))	
 graph save "${figures}/figureG1.gph", replace
 graph export "${figures}/figureG1.png", replace

 

 